//package com.juhuixing.es.server.controller;
//
//import com.juhuixing.es.server.business.service.BossService;
//import com.juhuixing.common.base.BaseController;
//import com.juhuixing.common.base.ResponseData;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.kafka.core.KafkaTemplate;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @ClassName TestController
// * @Description TODO
// * @Author 刘猛
// * @Date 2019/4/19 10:17
// **/
//@RestController
//@RequestMapping("/es")
//@Api(tags = "es index boss操作类")
//public class BossController extends BaseController {
//
//    @Autowired
//    private KafkaTemplate<String,String> kafkaTemplate;
//
//    @Autowired
//    private BossService employeeService;
//
//    /**
//     * 功能描述: es保存
//     * @methodName save
//     * @author: 刘猛
//     * @date: 2019/4/26 13:46
//     * @param: [id, firstName, lastName, age, about]
//     * @return: com.juhuixing.common.base.ResponseData
//     **/
//    @ApiOperation("es保存")
//    @PostMapping("/save")
//    public ResponseData save(
//            @RequestParam String id,
//            @RequestParam String bossName,
//            @RequestParam Integer age,
//            @RequestParam String about
//    ){
//        return ResponseData.ok(employeeService.save(id,bossName,age,about));
//    }
//
//    @ApiOperation("es查询ById")
//    @PostMapping("/get")
//    public ResponseData get( @RequestParam String id){
//        return ResponseData.ok(employeeService.findById(id));
//    }
//}
